// import Vue from 'vue'
// import './assets/css/golble.css'
// import ElementUI from 'element-ui';
import App from './App.vue'
import router from './router'
import Common from './components/common.vue' 
import TreeTable from 'vue-table-with-tree-grid'
import moment from 'moment'
// import VueQuillEditor from 'vue-quill-editor'
// import 'quill/dist/quill.core.css'
// import 'quill/dist/quill.snow.css'
// import 'quill/dist/quill.bubble.css'
import Timeline from './assets/timeline/index'
// import TimelineItem from './assets/timeline-item/index'

Vue.use(VueQuillEditor, /* { default global options } */)

// import 'element-ui/lib/theme-chalk/index.css';
import './assets/fonts/iconfont.css'
import axios from 'axios'
axios.defaults.baseURL=`http://127.0.0.1:8888/api/private/v1/`
// 挂载请求头toank
axios.interceptors.request.use((config)=>{
  config.headers.Authorization=window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http=axios
Vue.component('commonBox',Common)
Vue.component('treeTable',TreeTable)
Vue.use(ElementUI);
Vue.filter('filfrom',function(val){
 return moment(val).format('YYYY MM DD HH:mm:ss')
})
// Vue.use(Timeline)
// Vue.use(TimelineItem)


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
